<%@page contentType="text/html" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人信息管理系统 - 修改通讯录</title>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Roboto', sans-serif;
            background-color: #f4f7fb;
            margin: 0;
            padding: 0;
        }

        .container {
            width: 80%;
            max-width: 900px;
            margin: 50px auto;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }

        h1 {
            font-size: 28px;
            color: #4a90e2;
            text-align: center;
            margin-bottom: 30px;
        }

        .nav-links {
            text-align: center;
            margin-bottom: 20px;
        }

        .nav-links a {
            font-size: 16px;
            color: #4a90e2;
            margin: 0 15px;
            text-decoration: none;
        }

        .nav-links a:hover {
            text-decoration: underline;
        }

        table {
            width: 100%;
            margin: 20px 0;
            border-collapse: collapse;
        }

        td {
            padding: 12px;
            font-size: 16px;
            vertical-align: middle;
        }

        td input {
            width: 30%; /* 减小输入框宽度 */
            padding: 6px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }

        td input[type="text"]:focus {
            border-color: #4a90e2;
            outline: none;
        }

        .form-footer {
            text-align: center;
            margin-top: 20px;
        }

        .form-footer input[type="submit"],
        .form-footer input[type="reset"] {
            padding: 10px 20px;
            font-size: 16px;
            background-color: #4a90e2;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin: 0 10px;
            display: inline-block;
            transition: background-color 0.3s ease;
        }

        .form-footer input[type="submit"]:hover,
        .form-footer input[type="reset"]:hover {
            background-color: #357ab7;
        }

        /* 新增用于按钮居中的样式 */
        .button-container {
            text-align: center;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                width: 95%;
            }

            h1 {
                font-size: 24px;
            }

            td input {
                font-size: 14px;
            }
        }
    </style>
</head>
<body>

<div class="container">
    <h1>修改联系人</h1>

    <div class="nav-links">
        <a href="http://localhost/friendManager/addFriend.jsp">增加联系人</a>
        <a href="http://localhost/LookFriendController/lookFriend">查看通讯录</a>
        <a href="http://localhost/friendManager/deleteFriend.jsp">删除联系人</a>
    </div>

    <form action="http://localhost/UpdateFriendController/updateFriend" method="post" accept-charset="UTF-8">
        <table>
            <tr>
                <td colspan="2" align="center">
                    <p>请输入要修改人的姓名</p>
                    姓名 <input type="text" name="friendName" required/>
                </td>
            </tr>
            <tr class="form-footer">
                <td colspan="2">
                    <div class="button-container"> <!-- 使用div包裹按钮实现居中 -->
                        <input type="submit" value="确定">
                        <input type="reset" value="重置">
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>